package com.by.mapper;

import com.by.bean.SProductEnquiry;
import com.by.bean.SProductEnquiryDetail;
import com.by.common.crud.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Ye QS
 * @version 0.1
 * @className SProductEnquiryDetailMapper
 * @description
 * @date 2024/9/26 15:50
 * @since jdk11
 */
@Mapper
public interface SProductEnquiryDetailMapper extends BaseMapper<SProductEnquiryDetail> {
    /**
     * 批量保存
     *
     * @param eid 询价单id
     * @param productEnquiryDetailList
     * @return
     */
    int batchSave(@Param("eid") int eid, @Param("productEnquiryDetailList") List<SProductEnquiryDetail> productEnquiryDetailList);
    /**
     * 根据询价单id查询明细
     * @param eid
     * @return
     */
    List<Map> queryDetail(int eid);
}
